home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
GRAPHICS
/
IMGLIB95
/
UMDBTB.PA_
/
UMDBTB.PA
Wrap
Text File
|
1996-03-31
|
2KB
|
95 lines
{
Written by Jan Dekkers and Kevin Adams (c) 1995, 1996. If you are a non
registered client, you may use or alter this demo only for evaluation
purposes.
Copyright by SkyLine Tools. All rights reserved.
Part of Imagelib VCL/DLL Library.
}
unit umdbtb;
{Includes settings to compile in either 16 or 32 bit}
{$I DEFILIB.INC}
interface
uses
{$IFDEF DEL32}
Windows,
{$ELSE}
WinTypes,
WinProcs,
{$ENDIF}
DLL95V1, {ImageLib Dll interface and misc. functions}
Messages,
SysUtils,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
DB,
DBTables,
StdCtrls,
ExtCtrls,
DBCtrls,
DMMToolB, {PDBMultiMedia Toolbar VCL component}
TDMULTIM; {PDBMultiMedia1, PDBMultiImage VCL components}
type
TMMForm1 = class(TForm)
DataSource1: TDataSource;
Table1: TTable;
CheckBox1: TCheckBox;
PDBMultiMedia1: TPDBMultiMedia;
PDBMMediaToolBar1: TPDBMMediaToolBar;
DBNavigator1: TDBNavigator;
procedure CheckBox1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MMForm1 : TMMForm1;
implementation
{$R *.DFM}
{------------------------------------------------------------------------}
procedure TMMForm1.CheckBox1Click(Sender: TObject);
begin
PDBMMediaToolBar1.ShowToolBar:=CheckBox1.Checked;
end;
{------------------------------------------------------------------------}
procedure TMMForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
MMForm1:=Nil;
Action:=caFree;
end;
{------------------------------------------------------------------------}
procedure TMMForm1.FormCreate(Sender: TObject);
begin
If FileExists(ExtractFilePath(Application.ExeName)+'mmblob.dbf') then begin
{if the table exists open it on creation}
Table1.DataBaseName:=ExtractFilePath(Application.ExeName);
Table1.TableName:='mmblob.dbf';
Table1.Active:=True;
end;
{On create show the toolbar}
PDBMMediaToolBar1.PreviewsDir:=ExtractFilePath(Application.Exename);
PDBMMediaToolBar1.ShowToolBar:=true;
end;
{------------------------------------------------------------------------}
end.